<?php
/**
 * Twitter Model Class
 *
 * @author brian
 */
class Application_Model_Twitter extends Social_Oauth_BaseModel {
	/**
	 * @var Array 
	 */
	protected $urls;
	/**
	 * Constructor 
	 */
	public function __construct( Zend_Oauth_Token_Access $token, Array $options )
	{
		parent::__construct($token, $options);
	}
	/**
	 * Get Home Timeline 
	 */
	public function getTimeline()
	{
		$url = Zend_Registry::get('api_keys')->twitter->api->timeline_url;
		$data = $this->request($url);
		return json_decode($data);
	}
	/**
	 * Get User Profile 
	 */
	public function getProfile()
	{
		$url = Zend_Registry::get('api_keys')->twitter->api->profile_url;
		$data = $this->request($url);
		return json_decode($data);
	}
}